package text;

import java.io.File;


public class Test07 {
    public static void main(String[] args) {
        File dir = new File(".");
        if(dir.isDirectory()){
            File []sum = dir.listFiles (pathname -> pathname.getName().contains("s"));
            for (File sums : sum){
                System.out.println(sums.getName());
            }
        }
    }
}
